// 常用工具的菜单配置
// group： 1运营管理 2车辆运维

const listJS = [
  // 前四个在首页展示，没权限后面补齐4个 begin
  {
    image: '/static/images/home-revenue.png',
    name: '营收汇总',
    nav: 'navigateTo', //跳转方式
    url: '/pages/revenue-summary/index', //跳转路径
    permission: 'svmsapp:revenue',
    group: 1,
  },
  {
    image: '/static/images/home-kucun.png',
    name: '库存管理',
    nav: 'navigateTo', //跳转方式
    url: '/pages/asset/stock/index', //跳转路径
    permission: 'svmsapp:stock',
    group: 1,
    // tagName: '',// 图标标签，有值就显示否则隐藏
  },
  {
    image: '/static/images/home-dingdan.png',
    name: '订单同步',
    nav: 'navigateTo',
    url: '/pages/order/order-sync/index',
    permission: 'svmsapp:order-sync',
    group: 1,
  },
  {
    image: '/static/images/home-yycb.png',
    name: '运营成本',
    nav: 'navigateTo',
    url: '/pages/operate-cost/list',
    permission: 'svmsapp:operate-cost',
    group: 1,
  },
  {
    image: '/static/images/home-weizhang.png',
    name: '车辆违章',
    nav: 'navigateTo',
    url: '/pages/asset/car-violation/list',
    permission: 'svmsapp:car-violation',
    group: 2,
  },
  // end
  {
    image: '/static/images/home-gongdan.png',
    name: '工单管理',
    nav: 'navigateTo',
    url: '/pages/work/workOrder/list',
    permission: 'svmsapp:work-order',
    group: 1,
  },
  {
    image: '/static/images/home-tb.png',
    name: '同步记录',
    nav: 'navigateTo',
    url: '/pages/order/order-sync-record/index',
    permission: 'svmsapp:order-sync-record',
    group: 1,
  },
  {
    image: '/static/images/home-kctb.png',
    name: '库存同步记录',
    nav: 'navigateTo',
    url: '/pages/order/inventory-occupy-record/index',
    permission: 'svmsapp:inventory-occupy-record',
    group: 1,
  },
  {
    image: '/static/images/home-huiyuan.png',
    name: '会员管理',
    nav: 'navigateTo',
    url: '/pages/market/memberManage/list',
    permission: 'svmsapp:member',
    group: 1,
  },
  {
    image: '/static/images/home-hetong.png',
    name: '合同签署记录',
    nav: 'navigateTo',
    url: '/pages/contract/electronicContract/list',
    permission: 'svmsapp:contract',
    group: 1,
  },
  {
    image: '/static/images/driver-schedule.png',
    name: '司机排班',
    nav: 'navigateTo',
    url: '/pages/driver/driver-schedule/list',
    permission: 'svmsapp:driver-schedule',
    group: 1,
  },
  {
    image: '/static/images/home-fxjgcx.png',
    name: '反写价格结果',
    nav: 'navigateTo',
    url: '/pages/sync-ota-price/list',
    permission: 'svmsapp:sync-ota-price',
    group: 1,
  },
  {
    image: '/static/images/home-sms.png',
    name: '违章短信记录',
    nav: 'navigateTo',
    url: '/pages/asset/car-violation-sms/list',
    permission: 'svmsapp:violation-sms',
    group: 1,
  },
  // 车辆运维 begin
  {
    image: '/static/images/home-guanli.png',
    name: '车辆管理',
    nav: 'navigateTo',
    url: '/pages/asset/car-manager/list',
    permission: 'svmsapp:car-manage',
    group: 2,
  },
  {
    image: '/static/images/home-boxshiyong.png',
    name: '车载BOX使用',
    nav: 'navigateTo',
    url: '/pages/asset/car-boxuse/list',
    permission: 'svmsapp:car-boxuse',
    group: 2,
  },
  {
    image: '/static/images/home-weixiu.png',
    name: '车辆维修',
    nav: 'navigateTo',
    url: '/pages/asset/car-repair/list',
    permission: 'svmsapp:car-repair',
    group: 2,
  },
  {
    image: '/static/images/home-guanli.png',
    name: '处置车辆',
    nav: 'navigateTo', //跳转方式
    url: '/pages/asset/car-disposal/list', //跳转路径
    permission: 'svmsapp:car-disposal',
    group: 2,
    tagName: '处置', // 图标标签，有值就显示否则隐藏
  },
  {
    image: '/static/images/home-guanli.png',
    name: '归还车辆',
    nav: 'navigateTo', //跳转方式
    url: '/pages/asset/car-return/list', //跳转路径
    permission: 'svmsapp:car-return',
    group: 2,
    tagName: '归还', // 图标标签，有值就显示否则隐藏
  },
  {
    image: '/static/images/home-baoxian.png',
    name: '新增保险',
    permission: 'svmsapp:car-manage.add-insurance',
    group: 2,
  },
  {
    image: '/static/images/home-baoyang.png',
    name: '新增保养',
    nav: 'navigateTo',
    url: '/pages/asset/car-maintenance/form?from=indexTool',
    permission: 'svmsapp:car-manage.add-maintenance',
    group: 2,
  },
  {
    image: '/static/images/home-nianjian.png',
    name: '新增年检',
    nav: 'navigateTo',
    url: '/pages/asset/car-inspect/form?from=indexTool',
    permission: 'svmsapp:car-manage.add-inspect',
    group: 2,
  },
]

export { listJS }
